package eventStrategies.physicalModel;

import model.IPhysicalDataModel;
import eventManager.AppEvent;
import eventStrategies.IEventResponse;
import events.ECodeEventList;
import events.physicalModel.SetLuminosityEvent;

public class SetLuminosityStrategy extends IEventResponse {

	private IPhysicalDataModel physModel;
	
	public SetLuminosityStrategy(IPhysicalDataModel physModel) {
		super(ECodeEventList.SET_LUMINOSITY);
		this.physModel = physModel;
	}

	@Override
	public void execute(AppEvent event) {
		SetLuminosityEvent fullEvent = (SetLuminosityEvent) event;
		physModel.setLuminosity(fullEvent.luminosity);		
	}

}
